import os
from cffi import FFI


if __name__ == "__main__":
    current_path = os.path.abspath(os.path.dirname(__file__))
    header_file = os.path.join(current_path, "vterm.h")
    header_src = open(header_file, "r").read()
    ffi_builder = FFI()

    ffi_builder.cdef(header_src)

#     ffi_builder.set_source("_vterm", """
# #include "vterm.h"\n""", libraries=["vterm"])
#     ffi_builder.compile(verbose=True)
    ffi_builder.set_source("_vterm", None)
    ffi_builder.compile(verbose=True)
